<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<title>发货计划</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">运输任务</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
         
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
   <div id="contentwrapper" class="contentwrapper">
        	<div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="theFrom" method="post" action="/oversea/savetxtypedetail">
           <p>
            <label>备货时间 </label>
            <span class="field"> 
             <input type="text"  name="beiprojectdate" value="{{$detail.beiprojectdate}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
             </span> </p>
              <p>
            <label>任务编号 </label>
            <span class="field"> 
             <input type="text"  name="orderID" value="{{$orderID}} "  class="width100" />
             </span> </p>
          <p>
            <label>计划编号</label>
            <span class="field"> {{$detail.groupid}} </span> </p>
         	{{if $detail.shopname}}
            
          	  <p>
                        	<label>店铺：</label>
                            <span class="field">
                             <select name="shopname" id="shopname"  class="selection" style="width:200px;" onChange="getpurchprolist()" >
                             <option value="" >请选择</option>
                               {{foreach from=$d_shop item=li key=key}}
                              	 
                                 	  <option value="{{$li.name}}" {{if $detail.shopname==$li.name}} selected{{/if}} >{{$li.name}}</option>
                              
                               {{/foreach}}
                            </select></span>
                        </p>
         {{/if}}
          <p>
                        	<label>始发地</label>
                            <span class="field">
                           <!-- <select name="starthouse" id="starthouse" class="selection" style="width:200px;">
                            	 <option value="" >请选择</option>
                               {{foreach from=$overseawarehouse item=li key=key}}
                               		{{if $myseawarehouse}}
                               		  {{if in_array($li.name,$myseawarehouse)}} 
                               			 <option value="{{$li.name}}" {{if $li.name==$detail.startingplace}} selected{{/if}} >{{$li.name}}</option>
                                	  {{/if}}
                                    {{else}}
                               			 <option value="{{$li.name}}" {{if $li.name==$detail.startingplace}} selected{{/if}}  >{{$li.name}}</option>
                                    {{/if}}
                               {{/foreach}}
                            </select>-->
   <select name="starthouse" id="starthouse" class="selection" style="width:200px;">
  <option value="">请选择</option>
  <option value="Amazon FBA" {{if 'Amazon FBA'==$detail.startingplace}} selected{{/if}}>Amazon FBA</option>
  <option value="EZGO美国仓 (U2)" {{if 'EZGO美国仓 (U2)'==$detail.startingplace}} selected{{/if}}>EZGO美国仓 (U2)</option>
  <option value="3号仓库 (C3)" {{if '3号仓库 (C3)'==$detail.startingplace}} selected{{/if}}>3号仓库 (C3)</option>
  <option value="英华英国仓 (E2)" {{if '英华英国仓 (E2)'==$detail.startingplace}} selected{{/if}}>英华英国仓 (E2)</option>
  <option value="英华德国仓 (D2)" {{if '英华德国仓 (D2)'==$detail.startingplace}} selected{{/if}}>英华德国仓 (D2)</option>
  <option value="万邑通美西仓 (USWC)" {{if '万邑通美西仓 (USWC)'==$detail.startingplace}} selected{{/if}}>万邑通美西仓 (USWC)</option>
  <option value="1号仓库 (C1)" {{if '1号仓库 (C1)'==$detail.startingplace}} selected{{/if}}>1号仓库 (C1)</option>
  <option value="2号仓库 (C2)" {{if '2号仓库 (C2)'==$detail.startingplace}} selected{{/if}}>2号仓库 (C2)</option>
  <option value="大森林美国仓 (FUS01) 30093" {{if '大森林美国仓 (FUS01) 30093'==$detail.startingplace}} selected{{/if}}>大森林美国仓 (FUS01) 30093</option>
</select>

                            </span>
                        </p>
         <p>
                        	<label>目的地</label>
                            <span class="field">
                            <select name="endhouse" id="endhouse" class="selection" style="width:200px;" onChange="getpurchprolist()">
                            	 <option value="" >请选择</option>
                               {{foreach from=$overseawarehouse item=li key=key}}
                               		{{if $myseawarehouse}}
                               		  {{if in_array($li.name,$myseawarehouse)}} 
                               			 <option value="{{$li.name}}" {{if $li.name==$detail.destination}} selected{{/if}}>{{$li.name}}</option>
                                	  {{/if}}
                                    {{else}}
                               			 <option value="{{$li.name}}" {{if $li.name==$detail.destination}} selected{{/if}}>{{$li.name}}</option>
                                    {{/if}}
                               {{/foreach}}
                            </select>
                            </span>
                        </p>
        
           <p>
                        	<label>主要承运人</label>
                            <span class="field">
                           <select class="selection" id="carrier" name="carrier">
                <option value="">--请选择--</option>
                
						     	 {{foreach from=$carrierlist item=li key=key}}
					    			
                <option value="{{$li}}" {{if $detail.carrier==$li}} selected{{/if}}>{{$li}}</option>
                
					  	     	{{/foreach}}
					    			
					  	     	
							
              </select>
                            </span>
                        </p>
            
       
          <br>
           
          {{if $boxlistcount >0}}
          <div class="contenttitle2">
            <h3>已封箱列表</h3>
          </div>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="addTable" >
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">箱号</th>
                <th class="head1">装箱日期</th>
                <th class="head0">装箱人</th>
                <th class="head1">规格</th>
                <th class="head1">总数量</th>
                 <th class="head1">成本</th>
                <th class="head1">重量</th>
                <th class="head1">编辑</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$boxlist item=li key=key}}
            <tr>
              <td><input type="hidden" name="boxnumberID[]" value="{{$li.id}}">{{$li.boxnumber}}
               </td>
              <td>{{$li.createtime}}</td>
              <td>{{$li.createname}}</td>
              <td class="center">{{$li.specifications}} </td>
            <td class="center"><input type="hidden" name="quantity[]" value="{{$li.quantity}}">{{$li.quantity}}</td>
             <td class="center"><input type="hidden" name="allprice[]" value="{{$li.allprice}}"><input type="hidden" name="cartonscost[]" value="{{$li.cartonscost}}">{{$li.allprice}}<input type="hidden" name="skunum[]" value="{{$li.sku}}"></td>
              <td class="center">{{$li.weight}}</td>
               <td class="head1"><a href="/oversea/showcompare/{{$li.id}}">查看</a> </td>
            </tr>
            {{/foreach}}
              </tbody>
            
            <tfoot>
            </tfoot>
          </table>
          {{/if}}
          
         
         
          <p class="stdformbutton"> <span >
          <input type="hidden" name="groupid" value="{{$detail.groupid}}">
          <input type="hidden" name="transportationplanning_id" value="{{$detail.id}}">
          <button type="submit" class="submit radius2" id="btn" >确定发货</button> 
            </span> </p>
             
        </form>
        <br />
        
        
      </div>
      <!--subcontent--> 
      
      <!--subcontent--> 
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
</body>
</html>